home *** CD-ROM | disk | FTP | other *** search
- Path: serv.HiNet.net!usenet
- From: Yu Tien-Te <casperyu@pc35.hinet.net>
- Newsgroups: comp.lang.c++
- Subject: Help to debug my code?
- Date: Tue, 30 Jan 1996 22:27:16 +0800
- Organization: HiNet
- Message-ID: <310E2AC4.6726@pc35.hinet.net>
- NNTP-Posting-Host: 168.95.176.56
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b6a (Win95; I)
-
- Error 35:'MyFrameWindow::Find(TEventHandler::TEventInfo &,int(*)
- (TResponseTableEntry<GENERIC> &,TEventHandler::TEventInfo
- &))' is not a member of 'MyFrameWindow'
- Error 35:'_entryies' is not a member of 'MyFrameWindow'
-
-
-
-
-
-
-
- ---------------------------------------------
- #include <owl\applicat.h>
- #include <owl\framewin.h>
- //#include <owl\dc.h>
- //#include <owl\editfile.h>
- //#include <classlib\file.h>
- #include "myeditor.rh"
-
-
-
- class MyFrameWindow : public TFrameWindow
- {
- char *FileName;
-
-
- public :
- MyFrameWindow (TWindow *parent, const char far *title=0, TWindow
- *clientWnd = 0,
- BOOL shrinkToClient =
- FALSE, TModule *module = 0)
- : TFrameWindow(parent, title,
- clientWnd, shrinkToClient, module)
- {
- FileName = NULL;
- }
-
-
- void CmFileNew(void);
- void CmFileOpen(void);
- void CmFileSave(void);
- void CmFileSaveAs(void);
- void CmAbout(void);
-
-
- DECLARE_RESPONE_TABLE(MyFrameWindow);
- };
-
-
-
- DEFINE_RESPONSE_TABLE1( MyFrameWindow, TFrameWindow ) //<<-HERE's ERROR
- EV_COMMAND(CM_FILENEW, CmFileNew),
- EV_COMMAND(CM_FILEOPEN, CmFileOpen),
- EV_COMMAND(CM_FILEAVE, CmFileSave),
- EV_COMMAND(CM_FILESAVEAS, CmFileSaveAs),
- EV_COMMAND(CM_ABOUT, CmAbout),
- END_RESPONSE_TABLE;
-
-
-
-
-
-
-
- class HelloApp : public TApplication
- {
- public :
-
- HelloApp ( ) : TApplication ()
-
- {
- }
-
- void InitMainWindow ( )
- {
- TFrameWindow *MyWin = new
- MyFrameWindow ( NULL, "Editor" );
- SetMainWindow ( MyWin );
- MyWin->AssignMenu( MENU_1 );
- }
- };
-
-
-
-
-
-
-
- void MyFrameWindow::CmAbout(void)
- {
- MessageBox("My Editor\n", "About");
- }
-
- void MyFrameWindow::CmFileNew(void)
- {
- }
-
- void MyFrameWindow::CmFileOpen(void)
- {
- }
-
- void MyFrameWindow::CmFileSave(void)
- {
- }
-
- void MyFrameWindow::CmFileSaveAs(void)
- {
- }
-
-
-
-
- int OwlMain ( int, char*[] )
- {
- HelloApp MyProgram;
-
- return MyProgram.Run();
- }
-